package com.xiaok.mobileredis.controller;


import com.xiaok.mobileredis.entity.SysUser;
import com.xiaok.mobileredis.service.SysUserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaok
 * @since 2020-09-12
 */
@Controller
@RequestMapping("/sysUser")
public class SysUserController {


    @Resource
    SysUserService sysUserService;

    @GetMapping("/test")
    public List<SysUser> testMP(){
       // List sysUserList = sysUserService.selectList(new Condition().lt("1", "1"));
        List<SysUser> sysUserList  = sysUserService.selectAll();
        return sysUserList;
    }

}

